Belgelerim/ceng_491/implementation/doxygen/TraffEdu_Developers_Manual_Reference_ToSource/EnvironmentObject.cpp

Go to the documentation of this file.
00001 #include "EnvironmentObject.h"
00002 
00003 EnvironmentObject::EnvironmentObject(){
00004         this->setObjectType(ENVIRONMENTOBJECT);
00005         objectGroup->setName("EnvironmentObject");
00006         setObjectId();
00007         
00008 }
00009 EnvironmentObject::	EnvironmentObject(string pathname,float scale):TraffEduObject(pathname,scale){
00010         this->setObjectType(ENVIRONMENTOBJECT);
00011         objectGroup->setName("EnvironmentObject");
00012         setObjectId();
00013 }
00014 void EnvironmentObject::draw(osg::ref_ptr<osg::Group> root,int animationFlag){
00015         objectGroup->addChild(returnNode().get());
00016         this->setScale(modelScale, modelScale, modelScale);
00017         this->addTree(root,animationFlag);
00018         viewMode=1;
00019         isBeforeCreated=1;
00020 
00021 }

Generated on Sun May 28 18:54:09 2006 for TraffEdu by  doxygen 1.4.6-NO